package nevo.pkgs.expr;

import java.util.*;

import nevo.core.Model;

public class RealFunctionModel extends RealFunction implements Model
{	
	protected String outputName;
		
	public void setOutputName(String s) { outputName = s; }
	public String getOutputName() { return outputName; }
	
	public RealFunctionModel()
	{
		outputName = "output";
	}
		
	public Map<String, Object> run(Map<String,Object> input) throws Exception
	{	
		Object output = evaluate(input);
		Map<String, Object> modelOutput = new HashMap<String, Object>();
		modelOutput.put(outputName, output);
		
		return modelOutput;
	}
	
	public boolean isParallel() { return false; }
}
